//
//  PublicDeleteMassageApi.m
//  ZhongKeXinHeater
//
//  Created by Kendama on 2017/6/8.
//  Copyright © 2017年 DT. All rights reserved.
//

#import "PublicDeleteMassageApi.h"

@implementation PublicDeleteMassageApi{
    NSDictionary *_dic;
}

- (instancetype)initWithDic:(NSDictionary *)dic{
    if (self = [super init]) {
        _dic = dic;
    }
    return self;
}

- (NSString *)requestUrl {
    return @"/new/message/del";
}

- (YTKRequestMethod)requestMethod {
    return YTKRequestMethodPOST;
}

- (id)requestArgument {
    NSMutableDictionary *dic=[NSMutableDictionary getPubdic];
    
    if (_dic[@"id"]) {//消息id
        [dic setObject:_dic[@"id"] forKey:@"id"];
        
    }

    NSString *sign=[NSString getSign:dic];
    [dic setObject:sign forKey:@"sign"];
    return dic;
}

@end
